#!/bin/bash
path=/test/aa
[ -d "$path" ] || mkdir -p $path
cat <<END 
1.[install lamp]    
2.[install lnmp]    
3.[exit]    
END
read -p "please input the num you want:" num
expr $num + 1 &>/dev/null
Result=$?
function Usage(){
	echo $"Usage: you want input must be{1|2|3}"
	exit 2
}
[ $Result -ne 0 ] &&  Usage 
if [ $num -eq 1 ];then
	echo "starting install lamp"
	sleep 2;
	[ -x "$path/lamp.sh" ] || Usage
	source $path/lamp.sh
fi
